package com.orifine.sql.simple;

public class SimpleInsertBuilder {
	private SimpleSql sql;

	public SimpleInsertBuilder() {
		sql = new SimpleSql();
	}
	
	public  SimpleInsertBuilder insertInto(String tableName) {
		sql.statementType = SimpleSql.StatementType.INSERT;
		sql.tables.add(tableName);
		return this;
	}
	
	public  SimpleInsertBuilder value(String columns, String values) {
		sql.columns.add(columns);
		sql.values.add(values);
		return this;
	}
	
	public String toString(){
		return sql.insertSQL();
	}
	
	public  SimpleInsertBuilder join(String join) {
		sql.join.add(join);
		return this;
	}
}
